package com.beetl.mvc.demo.action;

import org.beetlframework.annotation.ioc.Inject;
import org.beetlframework.annotation.mvc.Controller;
import org.beetlframework.annotation.mvc.Action;
import org.beetlframework.mvc.bean.View;

import com.beetl.mvc.demo.common.UrlConstants;
import com.beetl.mvc.demo.service.Demo1Service;

@Controller
public class Demo1Controller {
	
	@Inject
	Demo1Service servie;
	
	@Action(UrlConstants.URL_DEMO)
	public View demo1(){
		servie.logic();
		View v = new View("/demo1.html");
		v.data("msg", "hello ,beetlmvc");
		return v;
	}
}
